package com.feiyu.blog.util;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import java.util.Map;

/**
 * @author tang ming
 * @since 2021/12/17 12:29
 */
public class WrapperBuilder {

    public  static <T> QueryWrapper<T> getQuery(Map<String,String> map, Class<T> clazz){
        QueryWrapper<T> wrapper = new QueryWrapper<>();
        for (String key : map.keySet()){
            wrapper.eq(key,map.get(key));
        }
        return wrapper;
    }
}
